package vip.ifmm.lehouse.email.service.strategy;

import vip.ifmm.lehouse.common.enums.type.EmailMimeType;
import vip.ifmm.lehouse.common.message.EmailSenderMessage;

/**
 * 邮件发送策略
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/18 20:00:15</p>
 */
public interface EmailSenderStrategy {

    // 得到这个邮件内容类型
    EmailMimeType type();

    // 发送邮件
    void sendEmail(EmailSenderMessage message);
}
